package com.emep.changzhi.analyse.repository.basics;

import com.emep.changzhi.analyse.entity.basics.SysCompanyInfo;
import com.emep.changzhi.analyse.entity.basics.SysEmissionIndexInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

import javax.transaction.Transactional;

/**
 * @author Wangcc
 * @version V1.0
 * @Description: 排放量指标信息表持久层
 * @date 2018/2/27 17:06
 */
public interface SysEmissionIndexInfoRepository extends BaseRepository<SysEmissionIndexInfo,Long> {

    @Modifying
    @Transactional
    Integer deleteById(String id);

    SysEmissionIndexInfo findSysEmissionIndexInfoById(String id);

    Page<SysEmissionIndexInfo> findAll(Specification<SysEmissionIndexInfo> spec, Pageable pageable);
}
